import 'package:json_annotation/json_annotation.dart';
import 'package:body_measurement/models/measuring_task.dart';

part 'measuring_list_result.g.dart';

@JsonSerializable()
class MeasuringListResult {
  MeasuringListResult(this.count, this.taskList);

  int count;

  @JsonKey(name: 'list')
  List<MeasuringTask> taskList;

  factory MeasuringListResult.fromJson(Map<String, dynamic> json) => _$MeasuringListResultFromJson(json);

  Map<String, dynamic> toJson() => _$MeasuringListResultToJson(this);
}
